package com.fauks.study.dubbo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.fauks.study.dubbo.api.bean.Order;
import com.fauks.study.dubbo.api.service.OrderService;

import java.util.ArrayList;
import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Override
    public List<Order> getOrderList() {
        List<Order> orderList = new ArrayList<>();
        orderList.add(new Order("1", "苹果"));
        orderList.add(new Order("2", "香蕉"));
        orderList.add(new Order("3", "西红柿"));
        return orderList;
    }
}
